package com.umer.pinban.user.adapter;

import android.content.Context;
import android.graphics.Color;
import android.net.Uri;
import android.view.View;
import android.widget.TextView;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.common.ui.recycleview.PullLoadMoreRecyclerView;
import com.common.ui.recycleview.adapter.RecyclerviewBasicPageAdapterTwo;
import com.common.ui.recycleview.base.ViewHolder;
import com.common.ui.recycleview.listener.DataStateListener;
import com.common.ui.recycleview.listener.OptListener;
import com.umer.pinban.R;
import com.umer.pinban.bean.user.SelectMemberRecordListBean;

/**
 * 续费记录
 */
public class SelectMemberRecordListAdapter extends RecyclerviewBasicPageAdapterTwo<SelectMemberRecordListBean> {

    private OptListener optListener;
    public SelectMemberRecordListAdapter(Context context, int layoutId, PullLoadMoreRecyclerView pullLoadMoreRecyclerView
            , OptListener optListener, DataStateListener dataStateListener) {
        super(context, layoutId, pullLoadMoreRecyclerView,dataStateListener);
        pMRecyclerView = pullLoadMoreRecyclerView;
        this.dataStateListener = dataStateListener;
        this.optListener = optListener;
    }

    @Override
    public void convert(ViewHolder holder, SelectMemberRecordListBean selectMemberRecordListBean, int position) {
        TextView tv1 = holder.getView(R.id.tv1);
        TextView tv2 = holder.getView(R.id.tv2);
        TextView tv3 = holder.getView(R.id.tv3);
        TextView tv4 = holder.getView(R.id.tv4);
        TextView tv5 = holder.getView(R.id.tv5);

        tv1.setText(selectMemberRecordListBean.getRemark() +" "+ "(" + selectMemberRecordListBean.getAddMemberDay() + ")");
        tv2.setText("¥"+selectMemberRecordListBean.getTotalPrice());
        tv3.setText(""+selectMemberRecordListBean.getPaymentMode());
        tv4.setText(""+selectMemberRecordListBean.getCreateDate());
        tv5.setText(""+selectMemberRecordListBean.getPaymentNo());
    }
}
